<form id="info-form" method="post">
    <table>
        <input type="hidden" name="id" value="@if(!empty($info)) {{$info['id']}} @endif" />
        <tr>
            <td width="60" align="right">组织名称:</td>
            <td><input name="name" id="org_name" value="" /></td>
            <td><input type="hidden" name="parent_id" class="easyui-textbox" value="@if(!empty($info)){{$info['parent_id']}}@endif" /></td>
        </tr>
        <tr>
            <td align="right">部门名称:</td>
            <td><input type="text" name="doc_name" class="easyui-textbox" value="@if(!empty($info)){{$info['name']}}@endif" /></td>
        </tr>
        <tr>
            <td align="right">负责人:</td>
            <td><input type="text" name="leader" class="easyui-textbox" value="@if(!empty($info)){{$info['leader']}}@endif" /></td>
        </tr>
        <tr>
            <td align="right">备注信息:</td>
            <td><input type="text" name="remarks" class="easyui-textbox" value="@if(!empty($info)){{$info['remarks']}}@endif" /></td>
        </tr>
    </table>
</form>

<script type="text/javascript">
    $(function(){
        $('#org_name').combotree({
            url: '/sys/org/tree',
            queryParams:{
                _token : $('meta[name="csrf-token"]').attr('content')
            },
            required:true
        });

        var id= $("input[name='click_parent_id']").val();
        var text= $("input[name='click_parent_name']").val();

        if (id !== '') {
            $('#org_name').combotree('setValue',id);
        }
    });

</script>